﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RoleDepart.ascx.cs" Inherits="Member_Control_RoleDepart" %>
<h2>
    Danh sách phòng ban</h2>
<table class="grid">
    <tr>
        <th width="40px">
        </th>
        <th width="40px">
        </th>
        <th width="120px">
            Mã phòng
        </th>
        <th>
            Tên phòng ban
        </th>
        <th width="80px">
            Thứ tự
        </th>
    </tr>
    <asp:Repeater ID="repDepart" runat="server">
        <ItemTemplate>
            <tr>
                <td align="center">
                    <%# Container.ItemIndex + 1 %>
                </td>
                <td align="center">
                    <% if (IsAddRole)
                       { %>
                    <a href='/Member/ManagerRoleDepart.aspx?depart=<%# Eval("DepartCode") %>'>
                        <img src="/images/button/modules.png" title="Phân quyền" alt="Phân quyền" /></a>
                    <%}
                       else
                       {%>
                    <img src="/images/button/modules2.png" title="Phân quyền" alt="Phân quyền" />
                    <%} %>
                </td>
                <td>
                    <div class="click viewPopup" rel='depart,<%# Eval("Id") %>'>
                        <% if (IsEditDepart)
                           { %>
                        <a href='/Admin/Hurman/AddEditDepart.aspx?id=<%# Eval("Id") %>'>
                            <%# Eval("DepartCode") %></a>
                        <%}
                           else
                           { %>
                        <%# Eval("DepartCode") %>
                        <%} %>
                    </div>
                </td>
                <td>
                    <%# Eval("DepartName") %>
                </td>
                <td align="center">
                    <%# Eval("Priority") %>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
